-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TCOPFLOW Python Bindings First Pass #131
Conversation
225e564
to
a62f321
Compare
7debb45
to
666b028
Compare
Hi @cameronrutherford, this is ready for review. Please let me know about any further required changes . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Requested some changes but this is almost ready to merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure as well to update the python interface markdown documentation @Jayapreethi
tcopf.solve() | ||
tcopf.print_solution(0) | ||
|
||
# Delete instance before finalization (try, at least) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wdym try, at least? Does this not work when running?
@@ -1,10 +1,12 @@ | |||
# test initializing exago only once | |||
import exago |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import exago |
Don't import exago
before check_preconditions
@@ -0,0 +1,38 @@ | |||
import exago |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this import to after check_preconditions()
is called.
Also, make sure to extend this fix to all of our other tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure to move this import.........
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - please add the functions that you've ported in a new table for TCOPFLOW in this doc page then I think this is good to go
Documented the tested functions of TCOPFLOW. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor cleanup
import mpi4py.rc | ||
mpi4py.rc.threads = False | ||
from mpi4py import MPI # noqa | ||
check_preconditions() | ||
import exago # noqa | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eliminate duplicate check_preconditions()
import exago # noqa | ||
|
||
|
||
check_preconditions() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check_preconditions() |
import mpi4py.rc | ||
mpi4py.rc.threads = False | ||
from mpi4py import MPI # noqa | ||
check_preconditions() | ||
import exago # noqa | ||
|
||
check_preconditions() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check_preconditions() |
import mpi4py.rc | ||
mpi4py.rc.threads = False | ||
from mpi4py import MPI # noqa | ||
check_preconditions() | ||
import exago # noqa | ||
|
||
check_preconditions() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check_preconditions() |
import exago # noqa | ||
|
||
|
||
check_preconditions() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check_preconditions() |
mpi4py.rc.threads = False | ||
check_preconditions() | ||
|
||
check_preconditions() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check_preconditions() |
from check_preconditions import check_preconditions | ||
check_preconditions() | ||
|
||
|
||
check_preconditions() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check_preconditions() |
@@ -0,0 +1,38 @@ | |||
import exago |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure to move this import.........
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One final missed check_preconditions()
, apart from that looks good to merge!
@@ -1,8 +1,7 @@ | |||
# test only run once things here | |||
import pytest | |||
import exago |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import exago |
from check_preconditions import check_preconditions | ||
|
||
check_preconditions() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check_preconditions() | |
check_preconditions() | |
import exago |
Spack ubuntu pipelines are failing... See #144 @jaelynlitz or @abhyshr with one final review I think this is good to merge! Thanks @Jayapreethi |
Merge request type
Relates to
This MR updates
Summary
Summarize the MR concisely
Linked Issue(s)
Link any relevant issues. If merging into the default branch, any directly addressed issues will be closed when merging into the default branch (develop).
Since GitHub is specific on language, make sure to include direct language if you want to have the issue closed:
You can also reference issues, but this will not close the issue when the merge request is merged: